import request  from '../../axios'

//获取医院详情的接口
export function reqHospitalDetail(hoscode: string) {
  return request({
    url: `/hosp/hospital/${hoscode}`,
    method: 'get'
  })
}

//获取医院科室的接口
export function reqHospitalDeparment(hoscode: string) {
  return request({
    url: `/hosp/hospital/department/${hoscode}`,
    method: 'get'
  })
}

//获取医院科室的接口
export function getBookingScheduleRule(pagination: any, query: any) {
  return request({
    url: `/hosp/hospital/auth/getBookingScheduleRule/${pagination.currentPage}/${pagination.pageSize}/${query.hoscode}/${query.depcode}`,
    method: 'get'
  })
}

export function findScheduleList(query: any, workDate: string) {
  return request({
    url: `/hosp/hospital/auth/findScheduleList/${query.hoscode}/${query.depcode}/${workDate}`,
    method: 'get'
  })
}